import request from '@/utils/request'

// 查询采样点列表
export function listSamplePoint(query) {
  return request({
    url: '/vbze/samplePoint/list',
    method: 'get',
    params: query
  })
}

// 查询采样点详细
export function getSamplePoint(id) {
  return request({
    url: '/vbze/samplePoint/' + id,
    method: 'get'
  })
}

// 新增采样点
export function addSamplePoint(data) {
  return request({
    url: '/vbze/samplePoint',
    method: 'post',
    data: data
  })
}

// 修改采样点
export function updateSamplePoint(data) {
  return request({
    url: '/vbze/samplePoint',
    method: 'put',
    data: data
  })
}

// 删除采样点
export function delSamplePoint(id) {
  return request({
    url: '/vbze/samplePoint/' + id,
    method: 'delete'
  })
}
